package cn.wolfcode.crm.utils;

import java.lang.reflect.Method;

public interface StringUtils {
    public static String getExpression(Method method) {
        //获取类名
        Class<?> clzz = method.getDeclaringClass();
        String className = clzz.getSimpleName();

        //获取方法名
        String methodName = method.getName();
        className = (className.charAt(0) + "").toLowerCase() + className.substring(1);
        //按照规则拼接
        return className + "_" + methodName;
    }


}
